<?php $dbdhys=dr_site_value('dbdhys');$dbwzys=dr_site_value('dbwzys');?>

<div class="d-kuan d-neikuang-30 navbar-fixed-top d-beijing-baise d-toububeijing {if $_GET['s'] == 'quan' && $_GET['id'] > 0 || ($_GET['s'] == 'quan' && $_GET['c'] == 'jifen') || $_GET['s'] == 'huiyuan' || $_GET['s'] == 'tags' || $_GET['s'] == 'wenda' || $_GET['s'] == 'remen' } d-yincang {/if}" >
	
	<div class="d-kuangjia d-beijing-hui-0">

	<div class="row d-gao-60">
	    <div class="col-md-2 d-yincang">
	    	<div class="">
	            <a href="{SITE_URL}">
					{if $qingchunlogotu}
					<img src="{dr_thumb($qingchunlogotu)}"  height="50" class="d-shang-5">
					{else}
					<img src="{SITE_LOGO}"  height="50" class="d-shang-5">
					{/if}
				</a>
	    	</div>
	    </div>
	    <div class="col-md-2 col-xs-2 d-wenzi-zuobian d-yincang-pc d-shangxian-juzhong d-gao-60">
	        <a href="{SITE_URL}">
				{if $qingchunicotu}
				<img src="{dr_thumb($qingchunicotu)}" width="38" height="38" class=" d-shang-10">
				{else}
				<img src="{SITE_LOGOICO}" width="38" height="38" class=" d-shang-10">
				{/if}
			</a>
	    </div>
		<div class="col-md-7 col-xs-8 d-wenzi-juzhong d-gao-60">

			    {if dr_is_app('jiansuo') && $jiansuokai == 0}
					<div class="d-gao-60 d-quxian-0 ">
						<form class="search-form-0" action="{CLIENT_URL}index.php" method="get">
							<input type="hidden" name="s" value="jiansuo">
							<input type="hidden" name="c" value="home">
							<input type="hidden" name="m" value="index">
							<input type="hidden" name="lei" value="1">
						<div class="input-group d-shang-12">
							<input type="text" class="form-control-ding-qingchun d-yuanjiao-zuo-20-20" placeholder="搜索..." name='k' value='{$_GET['k']}' id='search_keyword'>
							<span class="input-group-btn ">
								<button class="btn d-yuanjiao-you-20-20 d-beijing-e3" style="line-height: 20px;width: 40px;" type="submit" onclick="dr_post_comment('search_keyword')">
									<i class="fa fa-search"></i>
								</button>
							</span>
						</div>
						</form>
					</div>
				{else}
					<div class="d-gao-60 d-quxian-0 ">
						<form class="search-form-0" action="{CLIENT_URL}index.php" method="get">
							<input type="hidden" name="s" value="quan">
							<input type="hidden" name="c" value="sou">
							<input type="hidden" name="m" value="index">
						<div class="input-group d-shang-12">
							<input type="text" class="form-control-ding-qingchun d-yuanjiao-zuo-20-20" placeholder="搜索..." name='k' value='{$_GET['k']}' id='search_keyword'>
							<span class="input-group-btn ">
								<button class="btn d-yuanjiao-you-20-20 d-beijing-e3" style="line-height: 20px;width: 40px;" type="submit" onclick="dr_post_comment('search_keyword')">
									<i class="fa fa-search"></i>
								</button>
							</span>
						</div>
						</form>
					</div>
				{/if}
		    
		    
	    </div>
		<div class="col-md-3 col-xs-2 d-wenzi-youbian d-gao-60 d-yincang-pc ">
			<span class="d-shang-10 pull-right ">
				<a href="{SITE_URL}index.php?s=member&app=duixin" class="d-buhuanhang">
					{if $qingchunkaiqi == '1'}
				    <img src="{dr_thumb($qingchunxiaoxitu)}" width="38" height="38" class="">
					{else}
					<img src="{HOME_THEME_PATH}qingchun/img/xiaoxi3.png" width="38" height="38" class="">
					{/if}
					{if $member}
						{if dr_is_app('duixin')}
							{count action=table table=1_duixin shouxinren=$member.uid yidu=0 return=xiaoxi}
							{if $xiaoxi_count > 0}
									<span class="badge d-beijing-chengse dr_notice_num d-tishiss">0</span>
									<script>
										$('.dr_notice_num').html("{count action=table table=1_duixin uid=$member.uid yidu=0}");
									</script>
							{/if}
						{/if}
					{/if}
				</a>
			</span>
		</div>
	    <div class="col-md-3 col-xs-2 d-wenzi-youbian d-gao-60 d-yincang ">
			{if $member}
				<span class="d-shang-10 pull-right  d-xiala">
					<a href="{SITE_URL}index.php?s=member" class="d-yuanjiao-50">
					    <img src="{$member.avatar}" width="38" height="38" class="d-yuanjiao-50">
					</a>
					<div class="d-xiala-ji">
						<div class="d-xiala-ji-0 d-quxian-0 ">
							<a class="d-wenzi-16 d-hanggao-30" href="{d_huiyuan_url($member.id)}">
								<i class="bi bi-award"></i> 个人主页
							</a>
							<a class="d-wenzi-16 d-hanggao-30" href="{SITE_URL}index.php?s=member">
								<i class="bi bi-person"></i> 会员中心
							</a>
							<a class="d-hanggao-30" href="javascript:;" onclick="dr_loginout()">
								<i class=" bi bi-box-arrow-right"></i> 退出
							</a>
						</div>
						<div class="d-clear"></div>
					</div>
				</span>
				<span class="d-shang-10 pull-right d-zuoyou-20 d-quxian-0">
					<a href="{SITE_URL}index.php?s=member&app=duixin">
						{if $qingchunkaiqi == '1'}
						<img src="{dr_thumb($qingchunxiaoxitu)}" width="38" height="38" class="">
						{else}
						<img src="{HOME_THEME_PATH}qingchun/img/xiaoxi3.png" width="38" height="38" class="">
						{/if}
					    
						{if $member}
							{if dr_is_app('duixin')}
								{count action=table table=1_duixin shouxinren=$member.uid yidu=0 return=xiaoxi}
								{if $xiaoxi_count > 0}
										<span class="badge d-beijing-chengse dr_notice_num d-tishis">{$xiaoxi_count}</span>
										
								{/if}
							{/if}
						{/if}
						
					</a>
					
				</span>
				
				<span class="d-shang-15 pull-right">
					<a href="{SITE_URL}index.php?s=member&app=quan&c=woquan&m=index">
						
						{if $qingchunkaiqi == '1'}
						<img src="{dr_thumb($qingchundingfabutu)}" width="30" height="30" class="">
						{else}
						<img src="{HOME_THEME_PATH}qingchun/img/fabu2.png" width="30" height="30" class="">
						{/if}
					</a>
					
				</span>
			{else}
			    {if dr_is_app('notice')}
					{if isset($ci->member_cache['oauth']['weixins']['id'])}
						<div class="d-shang-12">
							<a target="_blank" href="{Router::oauth_url('weixin', 'login', urlencode($my_web_url))}">
								<div class=" d-zuo-10 d-neikuang-8-12 d-yuanjiao-20 pull-right d-zitiyanse-bai"
								{if $qingchunkaiqi}
								style="background: {$qingchunzhuse};"
								{else}
								style="background: #11d2b5;"
								{/if}
								><i class="fa fa-wechat"></i></div>
							</a>
						</div>
						<div class="d-shang-12 ">
							<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
								<div class="d-neikuang-8-20 d-yuanjiao-20 pull-right d-zitiyanse-bai"
								{if $qingchunkaiqi}
								style="background: {$qingchunzhuse};"
								{else}
								style="background: #11d2b5;"
								{/if}
								>登 录</div>
							</a>
						</div>
					{else}
						<div class="d-shang-12">
							<a 
							{if $member}
								href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}"
							{else}
								onclick="javascript:showDialog();;"
							{/if}
							>
								<div class="d-neikuang-8-20 d-yuanjiao-20 pull-right d-zitiyanse-bai" 
								{if $qingchunkaiqi}
								style="background: {$qingchunzhuse};"
								{else}
								style="background: #11d2b5;"
								{/if}
								>登 录</div>
							</a>
						</div>
						{if isset($ci->member_cache['oauth']['qq']['id']) && $ci->member_cache['oauth']['qq']['id']}
						<div class="d-shang-12 ">
							<a href="{Router::oauth_url('qq', 'login', urlencode($my_web_url))}" class="d-yuanjiao-50">
							    <img src="{HOME_THEME_PATH}web/img/qq.png" width="38" height="38" class="d-yuanjiao-50 d-you-10">
							</a>
						</div>
						{/if}
					{/if}
				{else}
				    
					<div class="d-shang-12">
						<a 
						{if $member}
							href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}"
						{else}
							onclick="javascript:showDialog();;"
						{/if}
						>
							<div class="d-neikuang-8-20  d-yuanjiao-20 pull-right d-zitiyanse-bai" 
							{if $qingchunkaiqi}
							style="background: {$qingchunzhuse};"
							{else}
							style="background: #11d2b5;"
							{/if}
							
							>登 录</div>
						</a>
					</div>
				{/if}
			{/if}
			
		</div>
	</div>

    </div>
</div>
{if $quandingbu == 2}
<div class="container {if $_GET['c']=='sou'}d-gao-60{else}d-gao-80{/if} d-yincang">
</div>
{else}
<div class="container {if $_GET['c']=='sou'}d-gao-60{else}d-gao-80{/if} d-yincang">
</div>
{/if}
{if $duoquan == 1 && !$_GET['id']}
<div class="d-kuan d-gao-50 d-yincang-pc"></div>
<div class="d-container d-yincang-pc d-xia-10 d-dingwei-50">
	
	<div class="d-row">
	    <div class="d-col-md-8">
			<!--圈子导航-->
			<div class="d-kuan d-beijing-baise d-bianhua-20 d-beijing-baise">
				<div class="row d-buhuanhang">
					<div id="header">
						<div class="swiper-wrapper baise d-buhuanhang">
							
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 d-a-hei d-jiacu">
									<a href="{CLIENT_URL}">首页</a>
								</div>
								<p class="gaoliangl curs_ss"></p>
							</div>
							{php $erjibiao = '1_quan_fenlei';}
							{table table=$erjibiao yijiid=0 cid=$danquanid order=paixu_asc num=100 return=t1}
							
							<div class="swiper-slide baise" onclick="location.href='{dr_url('quan/show/index', ['id'=>$danquanid,'qid'=>$t1.id])}'">
								<div class="d-neikuang-5-10 d-wenzi-16  {if $_GET['qid'] == $t1.id } d-jiacu d-a-hei {else} d-a-hui{/if}">
									<a href="{dr_url('quan/show/index', ['id'=>$danquanid,'qid'=>$t1.id])}">{$t1.name}</a>
								</div>
								{if $_GET['qid'] == $t1.id }<p class="gaoliangl curs_ss"></p>{/if}
							</div>
							{/table}
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 {if $_GET['t'] == 'jinghua'}d-a-hei d-jiacu {else} d-a-hui {/if}">
									<a href="{dr_url('quan/show/index', ['id'=>$danquanid,'t'=>'jinghua'])}">精华</a>
								</div>
								{if $_GET['t'] == 'jinghua' }<p class="gaoliangl curs_ss"></p>{/if}
							</div>
						</div>
					</div>
				</div>
				<!--div class="d-clear d-yincang-pc"></div>
				<div class="d-xian d-yincang-pc"></div-->
		</div>
	</div>
</div>
</div>
{/if}

<style>
	.d-toububeijing {
		{if $qingchunkaiqi}
		    background-color: {$qingchuntoubuyanse};
		    box-shadow: 0 6px 14px 0 rgba(227,233,237,.35); 
		{else}
			{if $dbdhys} 
			background-color: {$dbdhys};
			box-shadow: 0 6px 14px 0 rgba(227,233,237,.35); 
			{else} 
			background-color: #f3f4f7;
			box-shadow: 0 6px 14px 0 rgba(227,233,237,.35);
			{/if}
		{/if}
	}
	{if $duoquan == 1 && !$_GET['id']}
	@media screen and (max-width: 990px) { /*当屏幕尺寸小于1200px时，应用下面的CSS样式*/
		.d-toububeijing {
			{if $dbdhys} 
			background-color: {$dbdhys};
			box-shadow: 0 6px 14px 0 rgba(255, 255, 255, 1.0);
			{else} 
			background-color: #ffffff;
			box-shadow: 0 6px 14px 0 rgba(255, 255, 255, 1.0);
			{/if}
		}
	}
	.d-dingwei-50 {
	    /* position: sticky; */
	    position: sticky;
	    top: 50px;
	    z-index: 4;
	    width: 100%;
	    /*margin-left: -110px;*/
	}
	
	#header {
	    /*position: absolute;*/
	    /* left: 0; */
	    /*top: 50px;*/
	    z-index: 999;
	    height: 43px;
	    /*margin-right: auto;
	    margin-left: auto;*/
	    overflow: hidden;
	    /* background: #fdfdfc; */
	    font: 12px/40px hiragino sans gb, microsoft yahei, simsun;
	    /* box-shadow: 3px 3px 3px rgb(202 202 202 / 20%); */
	    /* background-color: #f5f7f8; */
	}
	.curs_ss {
	    color: #72a0aa !important;
	    font-size: 12px !important;
	    font-family: PingFangSC-Semibold, PingFang SC;
	    font-weight: 600 !important;
	    border-bottom: 3px solid #343434;
	    width: 20px;
	    border-radius: 3px;
	    position: absolute;
	    bottom: -18px;
	    left: 50%;
	    transform: translate(-50%, 0);
	}
	.dplayer-controller .dplayer-icons .dplayer-setting {
		display: none;
	}
	.dplayer-controller .dplayer-icons .dplayer-time, .dplayer-controller .dplayer-icons .dplayer-live-badge {
		display: none;
	}
	.dplayer.dplayer-mobile .dplayer-controller .dplayer-icons .dplayer-full .dplayer-full-in-icon {
		display: none;
	}
	.dplayer-controller .dplayer-icons.dplayer-icons-left .dplayer-icon {
		display: none;
	}
	
	{/if}
	.d-tishis {

		margin-left: -17px;
		margin-top: -20px;
		width: 20px;
	}
	.d-tishiss {
	
		margin-left: -17px;
		margin-top: 0px;
	}
	.d-beijing-hongse-2 {
		background-color: #f95705;
	}
</style>
{if $duoquan == 1 && !$_GET['id']}
<script src="{HOME_THEME_PATH}web/css/swiper-bundle.min.js" type="text/javascript"></script>
<script type="text/javascript">
	var mySwiper1 = new Swiper('#header',{
			slideToClickedSlide: true,
			//centeredSlides : true,
			slidesPerView: 'auto',
			initialSlide : 0,
			
		})

</script>
{/if}
